package _220330;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * @author ShadowLim
 * @create 2022-03-30-9:59
 */
public class 约数个数 {
    static int mod = (int)1000000007;

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        long ans = 0;
        for (int i = 1; i <= n; i++) {
            ans +=  n / i % mod;
        }
        ans %= mod;
        System.out.println(ans);
    }
}
